package org.example.cabinetmachine.service.impl;

import lombok.extern.slf4j.Slf4j;
import org.example.cabinetmachine.mapper.CabinetMachineMapper;
import org.example.cabinetmachine.service.CabinetMachineService;
import org.example.model.domain.CabinetMachine;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class CabinetMachineServiceImpl implements CabinetMachineService {
    @Autowired
    CabinetMachineMapper cabinetMachineMapper;


    @Override
    public List<CabinetMachine> findCabinetMachine(CabinetMachine cabinetMachine) {
        return cabinetMachineMapper.findCabinetMachine(cabinetMachine);
    }

    @Override
    public int updatechecked(int id) {
        return cabinetMachineMapper.updatechecked(id);
    }

    @Override
    public int updatecheckedzero(int id) {
        return cabinetMachineMapper.updatecheckedzero(id);
    }

    @Override
    public int updateisCollection(Integer ids) {
        return cabinetMachineMapper.updateisCollection(ids);
    }

    @Override
    public int Bookmarked(int id) {
        return cabinetMachineMapper.Bookmarked(id);
    }

    @Override
    public int Unfavorites(int id) {
        return cabinetMachineMapper.Unfavorites(id);
    }
}
